package com.ruoyi.training.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 班级耗材明细对象 class_consumable
 * 
 * @author WorrilessGo
 * @date 2025-09-24
 */
public class ClassConsumable extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 班级耗材ID（主键） */
    private String classConsumableId;

    /** 资源耗材ID（关联资源耗材表） */
    @Excel(name = "资源耗材ID", readConverterExp = "关=联资源耗材表")
    private String resourceConsumableId;

    /** 培训班ID（外键，关联training_class表） */
    @Excel(name = "培训班ID", readConverterExp = "外=键，关联training_class表")
    private String trainingClassId;

    /** 数量（按班级算） */
    @Excel(name = "数量", readConverterExp = "按=班级算")
    private Long quantityPerClass;

    /** 数量（按学员算） */
    @Excel(name = "数量", readConverterExp = "按=学员算")
    private Long quantityPerStudent;

    /** 合计数量 */
    @Excel(name = "合计数量")
    private Long totalQuantity;

    /** 说明 */
    @Excel(name = "说明")
    private String description;

    public void setClassConsumableId(String classConsumableId) 
    {
        this.classConsumableId = classConsumableId;
    }

    public String getClassConsumableId() 
    {
        return classConsumableId;
    }

    public void setResourceConsumableId(String resourceConsumableId) 
    {
        this.resourceConsumableId = resourceConsumableId;
    }

    public String getResourceConsumableId() 
    {
        return resourceConsumableId;
    }

    public void setTrainingClassId(String trainingClassId) 
    {
        this.trainingClassId = trainingClassId;
    }

    public String getTrainingClassId() 
    {
        return trainingClassId;
    }

    public void setQuantityPerClass(Long quantityPerClass) 
    {
        this.quantityPerClass = quantityPerClass;
    }

    public Long getQuantityPerClass() 
    {
        return quantityPerClass;
    }

    public void setQuantityPerStudent(Long quantityPerStudent) 
    {
        this.quantityPerStudent = quantityPerStudent;
    }

    public Long getQuantityPerStudent() 
    {
        return quantityPerStudent;
    }

    public void setTotalQuantity(Long totalQuantity) 
    {
        this.totalQuantity = totalQuantity;
    }

    public Long getTotalQuantity() 
    {
        return totalQuantity;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("classConsumableId", getClassConsumableId())
            .append("resourceConsumableId", getResourceConsumableId())
            .append("trainingClassId", getTrainingClassId())
            .append("quantityPerClass", getQuantityPerClass())
            .append("quantityPerStudent", getQuantityPerStudent())
            .append("totalQuantity", getTotalQuantity())
            .append("description", getDescription())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
